package course.po;

import java.io.Serializable;
import java.util.Date;

public class Teacher extends User  implements Comparable<Object>,Serializable {
	private int teaId;
	private String teaNo;
    private String teaName;
    private String teaSex;
    private Date teaAge;
    private Course course;
	public Teacher() {
		super();
	}
	public Teacher(int teaId,String teaNo, String teaName, String teaSex, Date teaAge,Course course) {
		super();
		this.teaId = teaId;
		this.teaNo = teaNo;
		this.teaName = teaName;
		this.teaSex = teaSex;
		this.teaAge = teaAge;
		this. course =  course;
	}
	public Teacher(int teaId,String teaName) {
		this.teaId = teaId;
		this.teaName = teaName;
	}
<<<<<<< HEAD

	public Teacher(String teaNo, String teaName, String teaSex, Date teaAge, Course course) {
		super();
		this.teaNo = teaNo;
		this.teaName = teaName;
		this.teaSex = teaSex;
		this.teaAge = teaAge;
		this.course = course;
	}
=======
	
>>>>>>> refs/remotes/origin/master
	@Override
	public String toString() {
		return "Teacher [编号:" + teaId + ", 教职工号:" + teaNo + ", 姓名：" + teaName + ", 性别:" + teaSex + ", 年龄:" + teaAge + ", 所教科目:" + course
				+ "]";
	}
	
	public int compareTo(Object object) {
		Teacher bk = (Teacher) object;
		int difference = (int) ((this.getTeaId() - bk.getTeaId()) * 10000);
		return difference;
	}
	public int getTeaId() {
		return teaId;
	}
	public void setTeaId(int teaId) {
		this.teaId = teaId;
	}
	public String getTeaNo() {
		return teaNo;
	}
	public void setTeaNo(String teaNo) {
		this.teaNo = teaNo;
	}
	public String getTeaName() {
		return teaName;
	}
	public void setTeaName(String teaName) {
		this.teaName = teaName;
	}
	public String getTeaSex() {
		return teaSex;
	}
	public void setTeaSex(String teaSex) {
		this.teaSex = teaSex;
	}
	public Date getTeaAge() {
		return teaAge;
	}
	public void setTeaAge(Date teaAge) {
		this.teaAge = teaAge;
	}
	public Course getCourse() {
		return course;
	}
	public void setCourse(Course course) {
		this.course = course;
	}	   
}
